import request from "@/utils/request"

export function queryRolePage(data) {
  return request({
    url: "/user/queryRolePage",
    method: "get",
    params: data
  })
}

export function queryOneRole(data) {
  return request({
    url: "/user/queryOneRole",
    method: "get",
    params: data
  })
}

export function updateRole(data) {
  return request({
    url: "/user/updateRole",
    method: "post",
    data: data
  })
}

export function insertRole(data) {
  return request({
    url: "/user/insertRole",
    method: "post",
    data: data
  })
}

export function deleteRole(data) {
  return request({
    url: "/user/deleteRole",
    method: "post",
    data: data
  })
}

export function queryAllProject() {
  return request({
    url: "/lProject/queryAllProject",
    method: "get"
  })
}

export function queryListRoleToProject(data) {
  return request({
    url: "/user/queryListRoleToProject",
    method: "get",
    params: data
  })
}

export function insertRoleToProject(data) {
  return request({
    url: "/user/insertRoleToProject",
    method: "post",
    data
  })
}

export function queryRoleBindMen(data) {
  return request({
    url: "/user/queryRoleBindMen",
    method: "get",
    params: data
  })
}

export function insertRoleBindMenButton(data) {
  return request({
    url: "/user/insertRoleBindMenButton",
    method: "post",
    data
  })
}
